<?php
/**
 * 功能:维易淘客联盟接口过期提醒
 * User: WD
 * Date: 2018/9/11 0011
 * Time: 11:36
 */

namespace app\index\controller;
use think\Controller;
use think\Db;

class Remind extends Controller{
    /**
     * 列表
     */
    public function index(){
        $content = trim(input('msg'));
        $res = Db::name('remind')->insert(['content'=>$content,'time'=>time()]);
        if($res){
            return json(['msg'=>'提醒成功','ok'=>true]);
        }else{
            return json(['msg'=>'提醒失败','ok'=>false]);
        }
    }



}